package com.mp.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user")
public class User extends Model<User> {
	private static final long serialVersionUID = 2603890837103787306L;
	//主键
	@TableId(type = IdType.AUTO)
	private Long id;
	//姓名
	@TableField(value = "name", condition = SqlCondition.LIKE)
	private String name;
	//年龄
	@TableField(condition = "%s&lt;#{%s}")
	private Integer age;
	//邮箱
	private String email;
	//直属上级
	private Long managerId;
	//创建时间
	private LocalDateTime createTime;
	@TableField(exist = false)
    private String remark;

}
